/**
 * Copyright (c) Software Institude of PKU
 * All rights reserved. 
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */
package edu.pku.sei.modeler.model.uml.ComponentDeployments;
// imports:
import org.w3c.dom.Element;

import edu.pku.sei.gefcommon.descriptor.annotation.MethodProperty;
import edu.pku.sei.modeler.model.common.*;
import edu.pku.sei.modeler.model.core.*;
import edu.pku.sei.modeler.model.xml.XMLUtility;


import edu.pku.sei.modeler.model.uml.Artifacts.Artifact;
import edu.pku.sei.modeler.uml.modelHelper.ModelPackage;

/**
 * @generated
 *
 */
public class DeploymentSpecification extends Artifact implements IDeploymentSpecification {
	// attributes
	
	protected String deploymentLocation;
	
	protected String executionLocation;
	
	
	
	
	// references
	
	
	
	// getters & setters for attributes
	
	@MethodProperty(
			id = "DEPLOYMENTSPECIFICATION_DEPLOYMENTLOCATION",
			catalog = "Model",
			name = ModelPackage.DEPLOYMENTSPECIFICATION_DEPLOYMENTLOCATION,
			setter = "setdeploymentLocation"
			)
	
	public String getDeploymentLocation() {
		return deploymentLocation;
	}
	public void setDeploymentLocation(String newDeploymentLocation) {
		String olddeploymentLocation = deploymentLocation;
		deploymentLocation = newDeploymentLocation;
		firePropertyChange(ModelPackage.DEPLOYMENTSPECIFICATION_DEPLOYMENTLOCATION, olddeploymentLocation, newDeploymentLocation);
	}
	
	@MethodProperty(
			id = "DEPLOYMENTSPECIFICATION_EXECUTIONLOCATION",
			catalog = "Model",
			name = ModelPackage.DEPLOYMENTSPECIFICATION_EXECUTIONLOCATION,
			setter = "setexecutionLocation"
			)
	
	public String getExecutionLocation() {
		return executionLocation;
	}
	public void setExecutionLocation(String newExecutionLocation) {
		String oldexecutionLocation = executionLocation;
		executionLocation = newExecutionLocation;
		firePropertyChange(ModelPackage.DEPLOYMENTSPECIFICATION_EXECUTIONLOCATION, oldexecutionLocation, newExecutionLocation);
	}
	
	// getters for references
	
	// save & load
	public void serialize(Element root) {
		super.serialize(root);
		// attributes
		
		XMLUtility.xmlInstance.serializeAttribute(root, ModelPackage.DEPLOYMENTSPECIFICATION_DEPLOYMENTLOCATION, deploymentLocation);
		
		XMLUtility.xmlInstance.serializeAttribute(root, ModelPackage.DEPLOYMENTSPECIFICATION_EXECUTIONLOCATION, executionLocation);
		
		// references
		
	}
	
	public void deSerialize(Element root) {
		super.deSerialize(root);
		// attributes
		
		deploymentLocation = XMLUtility.xmlInstance.deSerializeString(root, ModelPackage.DEPLOYMENTSPECIFICATION_DEPLOYMENTLOCATION);
		
		executionLocation = XMLUtility.xmlInstance.deSerializeString(root, ModelPackage.DEPLOYMENTSPECIFICATION_EXECUTIONLOCATION);
		
		// references
		
	}
	
	public void dynamicSet(String featureID, Object value) {
		if(featureID == null || "".equals(featureID)) {
			return;
		}
		// attributes
		
		// references
		
		else
			super.dynamicSet(featureID, value);
	}
}
 
 
 
 
 